package com.wen.service.impl;

import com.wen.mapper.UserMapper;
import com.wen.pojo.User;
import com.wen.service.UserService;
import com.wen.utils.MD5Utils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public User queryUserByNameAndPwd(String username, String password) {
        return userMapper.queryUserByNameAndPwd(username, MD5Utils.code(password));
    }
}
